home *** CD-ROM | disk | FTP | other *** search
/ AOL File Library: 4,101 to 4,200 / aol-file-protocol-4400-4101-to-4200.zip / AOLDLs / Shareware Demos / NAVPAK_ 32 Bit Navigation Assist / NPDEMO32.exe / Mapsetup.txt < prev    next >
Text File  |  1997-03-28  |  11KB  |  198 lines

  1.                "MapSetup.exe" explanation.
  2. ***************************************************************
  3.  Contents:
  4.          KAP, NOS/GEO or NDI to BMP or RLE CONVERSION
  5.          SCAN-YOUR-OWN CHARTS and MAPS
  6.                                 
  7. *************************************************************** 
  8.   MapSetup is a companion program to Navpak which is used to define
  9. georeference points on scan-your-own charts, and file conversion
  10. of BSB, NOS/GEO or NDI format charts to improve their use for navigation.
  11. The advantages of converting BSB, NOS/GEO and NDI charts for navigation
  12. are explained in the file: "Chart.txt"
  13.  
  14.   When using MapSetup with scan-your-own charts, georeference points 
  15. are digitized with the mouse, and chart records such as sounding datum,
  16. are typed in a dialog box.  When using MapSetup to convert BSB (.kap),
  17. NOS/GEO, or NDI format charts to .bmp or .rle, the script file will be
  18. written automatically using the georeference points and chart records
  19. contained in the .kap or .geo file.
  20.  
  21.   In either case, MapSetup will write a script file of the same name and
  22. path as the bitmap file, with the extension: .scr.  The script file will
  23. load with a bitmap of the same name and setup coordinates, scale, datum
  24. shifts, chart info records, and magnetic variation.  MapSetup will also
  25. generate half size, and quarter size images during conversion, which are
  26. used by NavPak-32 for quick scrolling and zooming.
  27.  
  28.   MapSetup will plot all the georeference points associated with a chart
  29. on the main window, and on the "Area Map" window.  The placement of the
  30. georeference points on the chart image can be visually checked to verify
  31. that the plotted point lands on the intersection of a meridian and
  32. parallel.  Discrepancies can be easily corrected by redigitizing with
  33. MapSetup, after converting to .bmp or .rle format.  Before moving or
  34. adding points, check the "Chart Records" for any datum shift values, and
  35. set to zero.  After editing points, and before saving the script file,
  36. restore datum shifts to their original values.  When datum shift values
  37. are present, the chart image should be checked for the datum shift note.  
  38.  
  39.   If using NavPak without a bitmap chart, a reference point can be
  40. digitized and recorded with the screen setup dialog box, as explained
  41. in the file: NavPak.txt.
  42.  
  43. ******  KAP, NOS/GEO, or NDI to BMP or RLE CONVERSION  ******************
  44.  
  45.   To improve the use of BSB (.kap), NOS/GEO, and NDI format charts for
  46. navigation, MapSetup can be used to reduce the resolution and clip off the
  47. borders. This speeds up scrolling and displays a much larger area of the
  48. chart on the screen.
  49.  
  50.   The conversion process also gives you the option to incorporate height
  51. units (feet or meters), magnetic variation, and notes in the script file to
  52. supplement the info from the source file.
  53.  
  54.    In the "Convert" menu, select "KAP or NOS/GEO conversion..."  and a
  55. dialog box will appear which gives the options of selecting the resolution,
  56. and to clip or not clip borders.  Clipping off the borders will reduce the
  57. image size 20% to 30%,  then reducing the resolution to 50% will reduce the
  58. remaining image, for a total image size of about 20% of the original chart.
  59.  
  60.   If converting from .kap or NOS/GEO to .bmp, the resulting .bmp file will be
  61. larger than the original file because the .kap or NOS is highly compressed,
  62. and the .bmp isn't.   MapSetup has the option of compressing the converted
  63. image to .rle format, which is very compact, and loads quickly, but scrolls
  64. a little slower than a .bmp image.
  65.  
  66.   The converted image will not load if it is over 16mb (uncompressed).
  67. Converting at a lower resolution, and clipping the borders will reduce
  68. the file size.  The largest NOAA chart, unclipped, should result in a file
  69. less than 16mb, when saved at 50% resolution.
  70.  
  71.   After selecting the resolution and clip options, select the "OK" button
  72. and a typical "File Open" dialog box will appear, where the drive,
  73. directory, and file name (.kap) can be selected as the source image for
  74. conversion.  Then a "Save As" dialog box will appear to specify where you
  75. want the converted .bmp or .rle and .scr files to go.  MapSetup then
  76. converts the source file, rewrites the georeference points and places all the
  77. important data from the  header into a binary script file.  The script
  78. file will set up the coordinates, datum shift, and "Chart Info" dialog box
  79. when the chart is loaded into MapSetup or NavPak.  After the source file is
  80. converted to a .bmp or .rle file, incorrect points can be moved and
  81. additional info can be added to the script file as explained below.
  82.  
  83.  
  84.  ************* SCAN-YOUR-OWN CHARTS and MAPS *******************
  85.  
  86.                           SCAN
  87.    Scan the image using a resolution which will show the desired detail.
  88. For most charts, 200 dpi resolution is a good balance between clarity and
  89. perspective.  Higher resolutions will give better clarity but less
  90. perspective and a much larger file size.  A scan at 165 dpi will give a
  91. big perspective, with some loss of detail, but still useful.  Converting
  92. charts to monochrome is considered a modification of the data, but the file
  93. size will be much smaller and it will load much faster.  Since paper charts
  94. should be on hand,  the color loss is not objectionable.  NavPak will also
  95. display color and gray scale charts.
  96.                
  97.                        DESKEW IMAGE
  98. FIND SKEW ANGLE
  99.  
  100.   After scanning the image, the "Skew..." function in MapSetup can be used
  101. to find the skew angle of the scan.   To use this measurement function, select
  102. a parallel or meridian (grid line) near the center and on the long axis of the
  103. chart to minimize any out-of-square distortion.   Digitize a point near each end
  104. of the grid line, then select "Skew..." from the "Tools" menu.  The skew angle
  105. given, is in the range of 0 to 45 degrees.  If deskewing a chart that was scanned
  106. at more than 45 degrees, it may be necessary to add or subtract multiples of
  107. 45 degrees (depending on which quadrant north is in) to the result to determine
  108. a skew angle in the range of 0 to 360 degrees.
  109.  This function is in the beta testing phase, and should be used with caution.
  110.  
  111. ANOTHER METHOD TO FIND SKEW ANGLE
  112.  
  113.   Use the X,Y coordinates shown on the title bar of MapSetup to count the
  114. pixels of misalignment.  Using the tangent function and the X,Y coordinates, you
  115. can determine the amount in degrees, which your image is skewed.
  116. Example:  A grid line runs from (0,100) to (1200,95).  The triangle to
  117. solve is a right triangle 5 x 1200 pixels.
  118. Inverse tan(5/1200)=0.23873 degrees. This could be written as tan-1 or arctan.
  119.   Rotate this image clockwise 0.23873 degrees.
  120.  
  121. SKEW TOLERANCE
  122.   If the skew angle is less than 0.1 degree, then it is not generally necessary
  123. to deskew it.  Most commercially available digital charts can be skewed up to
  124. 0.1 degree, which is not objectionable if the chart has enough reference points.
  125.  
  126.   Use an image processing program to "deskew" your scanned image.  Most image
  127. editing programs have deskew capability, but some don't.  Some charts are
  128. out of square.  Out of Square is distinctly different from skewed.  This 
  129. discrepancy cannot be corrected, but is normally insignificant if the chart
  130. has enough reference points.
  131.  
  132.  
  133.                       CALIBRATE IMAGE
  134.   MapSetup.exe is used to select reference points on the bitmap and
  135. enter their coordinates.  You can define 96 points on the chart at random
  136. locations.   The average chart should have about 28 points reasonably
  137. spread out.   Small fragments of charts need about 4 or 6 points.
  138.  
  139.   To record points, open the "Points" dialog box and the "Area Map".
  140. When you digitize a point on the bitmap, MapSetup will determine if the
  141. point is within 15 pixels of a previously recorded point, or within 15
  142. pixels of a previously recorded meridian or parallel.  If any matches are
  143. found, they will be shown in the "Points" dialog box.  When a matching
  144. coordinate is not found,  type it in the latitude and longitude boxes and
  145. press the  "Record" button.   This writes the point in the script file.
  146. If you digitize and record points along one meridian and one parallel,
  147. then all the rest of the points on the chart can be recorded without typing,
  148. simply digitize and press the "Record" button.
  149.  
  150.   If you digitize and record 2 diagonally opposed points, the coordinates
  151. in the title bar will be valid, which will assist in identifying other
  152. points.  
  153.  
  154.   The points can be quickly checked with the "Check" button in the "Points"
  155. dialog box.  To use this feature, open the "Area Map" and digitize on one
  156. of the reference points.   This will set the active point in the "Points" 
  157. dialog box, and show its Lat and Lon.   Select the "check" button, and the
  158. active point will turn yellow.  All points on the same meridian as the active 
  159. point will turn green, and all points on the same parallel will turn blue.
  160. Also check the setup by scrolling around the chart, and comparing the points
  161. with the grid on the chart. If you find any mistakes, you can redigitize a
  162. point, and press the "Record" button to change it, or it can be deleted.
  163.  
  164.   Two comment fields labeled: "Text String 1" and "Text String 2" can be
  165. used for info about the chart, and the "Heights" field is used for height
  166. units above the water (feet or meters).    These text strings will appear
  167. in NavPak, in the "Chart Info..."dialog box, when the subject bitmap is
  168. loaded.   Also the magnetic variation can be set.  Variation is not
  169. necessarily chart specific, so this should be considered a default
  170. setting, which can be changed when using NavPak.   Variation is normally
  171. received with the NMEA data, however some GPS units may not transmit
  172. variation, and if the GPS fails, then a default variation in the chart
  173. script file will be important for plotting bearings. 
  174.  
  175.   Horizontal datum shifts, when known, are given on charts to provide the
  176. correction necessary to shift the geodetic datum of the chart to the
  177. World Geodetic System.   If the GPS is set to the same datum as the chart
  178. then the datum shift would be zero.
  179.  
  180.   When you're satisfied that the setup info is correct,  select
  181. "Save Script" from the "File" menu.  This will write a new script file
  182. of the same name as the bitmap with .scr as its extension.  This script file
  183. will be placed in the same directory as the bitmap.  If a script file already
  184. exists, then it will be over-written.
  185.  
  186.   Script files can be edited or corrected by loading the bitmap into
  187. MapSetup.  This will load the script file if it is in the same directory
  188. as the bitmap and fill in all the dialog boxes.  When satisfied  that the
  189. setup is correct, then select "Write Script file" to over-write the existing
  190. script file on disk.
  191.  
  192.   To update the image, you can use Windows Paintbrush, or any other
  193. program which supports BMP or RLE formats.
  194.  
  195.   The script file format has provisions for future expansion which will
  196. be compatible with script files made for previous versions.
  197.  
  198.                        end of MapSetup.txt